package main.Q2501_2600;

public class Q2521_2530 {
	public static void main(String[] args) {
		System.out.println("Question2521：");
		System.out.println("Question2522：");
		System.out.println("Question2523：");
		System.out.println("Question2524：");
		System.out.println("Question2525：");
		System.out.println("Question2526：");
		System.out.println("Question2527：");
		System.out.println("Question2528：");
		System.out.println("Question2529：正整数和负整数的最大计数");
		System.out.println("Question2530：");
	}
}

class Question2529 {
	public int maximumCount(int[] nums) {
		int count1 = 0, count2 = 0;
		for (int num : nums) {
			if (num > 0) count1++;
			if (num < 0) count2++;
		}
		return Math.max(count1, count2);
	}
}